<?php

class PageActions extends Actions {

  public function pageDefault(){
    
    if(!file_exists(dirname(__FILE__)."/templates/".$this->param(0).".php" )){
      $this->redirect(Config::get('base_url', "/")."portada");
    }
    $vista = $this->param(0);
    
    //Inspect::view($vista);

    $view = new View($vista);

    $view->show();
  }

}